package com.edu.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MyAspect {
        @Before("execution(* com.edu.service..*.*(..))")
        public void before(){

            System.out.println("这是前置方法");
        }
}
